# ##### BEGIN GPL LICENSE BLOCK #####
#
#  This program is free software; you can redistribute it and/or
#  modify it under the terms of the GNU General Public License
#  as published by the Free Software Foundation; either version 3
#  of the License, or (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software Foundation,
#  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# ##### END GPL LICENSE BLOCK #####

#-------------------------------------------------------------------------------
# Name:        wxVP
# Purpose:     wxPython-based Volition Package viewer and editor
#
# Author:      Christopher Koch
#
# Created:     26/01/2013
# Copyright:   (c) Christopher Koch 2013
# Licence:     GPL 3.0
#-------------------------------------------------------------------------------

import argparse

def main():
    parser = argparse.ArgumentParser()
    parser.add_argument("-v", "--version", action="version", version="0.1 alpha")
    parser.add_argument("-g", "--gui", help="Run with the gui", action="store_true")
    parser.add_argument("-i", "--input", help="Input file")
    parser.add_argument("-o", "--output", help="Output file")
    parser.add_argument("-l", "--list", help="List VP file's index")
    parser.add_mutually_exclusive_group()
    parser.add_argument("-e", "--extract", help="Output file is the file you want to extract", action="store_true")
    parser.add_argument("-c", "--create", help="Input should be a directory", action="store_true")
    args = parser.parse_args()
    if args.gui:
        import wxvp_app
            wxvp_app.display_gui(args.input)

if __name__ == '__main__':
    main()
